Convert Parts to Assemblies

Description

This is a tool to convert the selected parts to assemblies. So that in the new assembly, each part contains one orphan mesh body only or one geometry body with the associated mesh body.

Workflow

Step 1: Select one or more parts in the model tree or viewport.

Step 2: Click Apply or press MMB to execute.

What the tool does for each selected part:

1. Creates a new assembly under the same parent (model or containing assembly) named after the selected part.

2. Classifies and moves bodies from the selected part into the new assembly as follows:

- Pure geometry bodies: each is moved into its own new part under the new assembly.

- Geometry + associated mesh: the geometry and its associated mesh are moved together into a new part.

- Orphan mesh bodies ( no associated geometry): each is moved into its own new part.

3. If the selected part contains exactly one item (a single geometry, a single geometry+mesh pair, or a single orphan mesh), the original part is moved into the new assembly unchanged.

4. If the selected part contains multiple items, each item is moved into its own new part under the new assembly and the original (now-empty) part is deleted.